package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author jiyonghui
 * @className InventoryTypeEnum
 * @description
 * @date 2020/1/20   9:31
 */
@Getter
public enum InventoryTypeEnum {
    // 盘点类型
    FAST_INVENTORY("1", "enum.inventoryType.name.fast_inventory", "fastInventory"),
    STANDARD_INVENTORY("2", "enum.inventoryType.name.standard_inventory", "standardInventory"),
    ;

    private String code;
    private String name;
    private String attr;

    InventoryTypeEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
